of

open fun of(pixels: Int): FontSizeInPixels

Returns the FontSizeInPixels instance for the given value.

Parameters

pixels

the font size in pixels. Must not be negative

Throws

if the value provided is negative.